package com.example.leave.form;

import com.example.leave.pojo.Sort;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class PageInfoForm {
    @NotNull(message = "pageNumber不能为空")
    private int number;

    @NotNull(message = "pageSize不能为空")
    @Min(1)
    private int size;
    @Valid
    private Sort sort;

}
